- Delete All Occurrences
- 05 April, 2026: 00.12.52 ✔
- Remember, its doubly linked list
- It may need to preserve next pointer
- Try to solve with only one pointer(
current)
- Find Pairs with Given Sum
- To get the last node, no need to iterate to last node, it can be accessed by
last->next
- As array are sorted, ending condition of comparison iteration could be
first->data < last->data
- Remove Duplicates
- 05 April, 2026: 00.27.23 ❌
- Failed at optimization(tradeoff)
- Add item to new list only when there is duplicates, not every time